package com.bby;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Settings {
    static Properties prop;
    public static String rootsDir;
    public static String usersDir;
    public static String tempFilesDir;
    public static long initialStorage;
    public static int captchaHigh=100, captchaWidth=200, captchaValidSeconds=60;
    static {
        prop=new Properties();
        try {
            prop.load(Settings.class.getResourceAsStream("/settings.properties"));
            rootsDir=prop.getProperty("rootsDir");
            usersDir=prop.getProperty("usersDir");
            tempFilesDir=prop.getProperty("tempFilesDir");
            initialStorage=Long.parseLong(prop.getProperty("initialStorage"));
            prop=null;
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
